import React, { Component } from 'react'
import { connect } from 'react-redux'
import PreviewList from './components/preview/previewList'
import { push } from 'react-router-redux/lib/actions'
import { injectIntl } from 'react-intl'
import { articleGet } from './actions'

@injectIntl
@connect(state => {
  return {
    articleList: state.articleList.items
  }
}, {
  articleGet,
  push
})
export default class List extends Component {
  render() {
    return (
      <div>
        <PreviewList {...this.props} type='list' />
      </div>
    )
  }
}
